import request from '@/utils/request'

// 查询付款与合同中间列表
export function listPayContract(query) {
  return request({
    url: '/payment/PayContract/list',
    method: 'get',
    params: query
  })
}
// 查询付款与合同中间列表-根据合同查询到付款主表
export function listPayConItem(query) {
  return request({
    url: '/payment/PayContract/listItem',
    method: 'get',
    params: query
  })
}

// 查询付款与合同中间详细
export function getPayContract(midId) {
  return request({
    url: '/payment/PayContract/' + midId,
    method: 'get'
  })
}

// 新增付款与合同中间
export function addPayContract(data) {
  return request({
    url: '/payment/PayContract',
    method: 'post',
    data: data
  })
}

// 修改付款与合同中间
export function updatePayContract(data) {
  return request({
    url: '/payment/PayContract',
    method: 'put',
    data: data
  })
}

// 删除付款与合同中间
export function delPayContract(midId) {
  return request({
    url: '/payment/PayContract/' + midId,
    method: 'delete'
  })
}
export function listhtbyweid(query) {
  return request({
    url: '/payment/PayContract/listbyweid',
    method: 'get',
    params: query
  })
}